#include "vld.h"

#include <windows.h>
#include <stdio.h>

#include "CTokenSplitter.h"
#include "CConfigFile.h"

int main(int argc, char **argv)
{
	// split test
	
	/*	CTokenSplitter* ts = new CTokenSplitter("  test 1 234 ");
	
	  for (int i = 0; i < ts->getTokenCount(); i++)
	  printf("%d= \"%s\"\n", i, ts->getToken(i));
	  
	delete ts; */
	
	// config test
	
	CConfigFile* cf = new CConfigFile();
	
	/*	cf->setValue("scrWidth", 800, 0);
	cf->setValue("scrHeight", 600, 0);
	cf->setValue("scrBpp", 32, 0);
	cf->setValue("fullscreen", 1, 0);
	
	  cf->setValue("v1", 500, 0);
	  cf->setValue("v2", 500, 0);
	  cf->setValue("v3", 500, 0);
	  cf->setValue("v4", 500, 0);
	  cf->setValue("v5", 500, 0);
	  cf->setValue("v6", 500, 0);
	  cf->setValue("v7", 500, 0);
	  cf->setValue("v8", 500, 0);
	  
	cf->writeConfig("test.cfg"); */
	
	
	cf->readConfig("test.cfg");

	printf("bpp=%.5g\n", cf->getValue("scrBpp"));
	delete cf;
	return 0;
}